/* 全局样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', 'Microsoft YaHei', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f5f5f5;
    padding: 20px;
}

/* 容器样式 */
.container {
    max-width: 1200px;
    margin: 0 auto;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

/* 头部样式 */
.header {
    background: linear-gradient(135deg, #3498db, #2c3e50);
    color: white;
    padding: 40px;
    text-align: center;
}

.profile .name {
    font-size: 2.5rem;
    margin-bottom: 10px;
    font-weight: 700;
}

.profile .title {
    font-size: 1.2rem;
    margin-bottom: 20px;
    opacity: 0.9;
    font-weight: 400;
}

.contact {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
}

.contact-item {
    color: white;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.contact-item:hover {
    opacity: 0.8;
    transform: translateY(-2px);
}

/* 主要内容区域 */
.main {
    display: flex;
    flex-wrap: wrap;
}

.left-column {
    flex: 1;
    min-width: 300px;
    padding: 40px;
    background-color: #f9f9f9;
}

.right-column {
    flex: 2;
    min-width: 400px;
    padding: 40px;
}

/* 通用区块样式 */
.section {
    margin-bottom: 40px;
}

.section-title {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #2c3e50;
    font-size: 1.3rem;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #3498db;
}

.section-title i {
    color: #3498db;
}

/* 个人简介样式 */
.intro {
    text-align: justify;
    color: #555;
    line-height: 1.8;
    margin-bottom: 15px;
}

.self-evaluation {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #e0e0e0;
}

.evaluation-title {
    margin-top: 0;
    margin-bottom: 8px;
    font-size: 1.1em;
    color: #333;
}

.self-evaluation p {
    line-height: 1.8;
    text-align: justify;
    margin-bottom: 0;
    color: #555;
}

/* 技能样式 */
.skills {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.skill-category .skill-category-title {
    font-size: 1.1rem;
    color: #2c3e50;
    margin-bottom: 10px;
    font-weight: 600;
}

.skill-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.skill-item {
    background-color: #e3f2fd;
    color: #1976d2;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.skill-item:hover {
    background-color: #3498db;
    color: white;
    transform: translateY(-2px);
}

/* 证书样式 */
.certificates {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.certificate-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 15px;
    background-color: #f0f8ff;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.certificate-item:hover {
    background-color: #e3f2fd;
    transform: translateX(5px);
}

.certificate-name {
    font-weight: 500;
    color: #2c3e50;
}

.certificate-date {
    color: #7f8c8d;
    font-size: 0.9rem;
}

/* 兴趣爱好样式 */
.hobbies {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.hobby-item {
    background-color: #f5f5f5;
    border: 1px solid #e0e0e0;
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    color: #666;
    transition: all 0.3s ease;
}

.hobby-item:hover {
    background-color: #3498db;
    color: white;
    border-color: #3498db;
    transform: translateY(-2px);
}

/* 教育背景样式 */
.education {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.education-item {
    padding: 20px;
    background-color: #fafafa;
    border-radius: 10px;
    border-left: 4px solid #3498db;
    transition: all 0.3s ease;
}

.education-item:hover {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transform: translateY(-5px);
}

.education-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.education-institution {
    font-size: 1.2rem;
    color: #2c3e50;
    font-weight: 600;
}

.education-date {
    color: #7f8c8d;
    font-weight: 500;
}

.education-major {
    color: #34495e;
    font-weight: 500;
    margin-bottom: 5px;
}

.education-gpa {
    color: #e67e22;
    font-weight: 600;
    margin-bottom: 5px;
}

.education-courses {
    color: #7f8c8d;
    font-size: 0.95rem;
}

/* 项目经历样式 */
.projects {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.project-item {
    background-color: #fafafa;
    padding: 25px;
    border-radius: 10px;
    border-top: 4px solid #3498db;
    transition: all 0.3s ease;
}

.project-item:hover {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transform: translateY(-5px);
}

.project-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.project-link {
    display: inline-block;
    margin: 8px 0;
    color: #3498db;
    text-decoration: none;
    font-size: 0.9em;
    transition: color 0.3s ease;
}

.project-link:hover {
    color: #2980b9;
    text-decoration: underline;
}

.project-title {
    font-size: 1.2rem;
    color: #2c3e50;
    font-weight: 600;
}

.project-date {
    color: #7f8c8d;
    font-weight: 500;
}

.project-role {
    color: #34495e;
    font-weight: 500;
    margin-bottom: 15px;
    font-style: italic;
}

.project-details {
    padding-left: 20px;
}

.project-details li {
    margin-bottom: 8px;
    color: #555;
    line-height: 1.6;
}

.project-details li::before {
    content: "→";
    color: #3498db;
    margin-right: 5px;
}

/* 实习经历样式 */
.internships {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.internship-item {
    background-color: #fafafa;
    padding: 25px;
    border-radius: 10px;
    border-right: 4px solid #3498db;
    transition: all 0.3s ease;
}

.internship-item:hover {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transform: translateY(-5px);
}

.internship-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.internship-company {
    font-size: 1.2rem;
    color: #2c3e50;
    font-weight: 600;
}

.internship-date {
    color: #7f8c8d;
    font-weight: 500;
}

.internship-position {
    color: #34495e;
    font-weight: 500;
    margin-bottom: 15px;
    font-style: italic;
}

.internship-details {
    padding-left: 20px;
}

.internship-details li {
    margin-bottom: 8px;
    color: #555;
    line-height: 1.6;
}

.internship-details li::before {
    content: "→";
    color: #3498db;
    margin-right: 5px;
}

/* 获奖情况样式 */
.awards {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.award-item {
    padding: 15px 20px;
    background-color: #fff8e1;
    border-radius: 8px;
    transition: all 0.3s ease;
    border-left: 4px solid #ffc107;
}

.award-item:hover {
    background-color: #fff3cd;
    transform: translateX(5px);
}

.award-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.award-name {
    font-weight: 600;
    color: #d68910;
}

.award-date {
    color: #7f8c8d;
    font-size: 0.9rem;
}

/* 响应式设计 */
@media (max-width: 992px) {
    .main {
        flex-direction: column;
    }
    
    .left-column,
    .right-column {
        min-width: 100%;
    }
    
    .contact {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }
    
    .education-header,
    .project-header,
    .internship-header,
    .award-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
}

@media (max-width: 768px) {
    body {
        padding: 10px;
    }
    
    .header,
    .left-column,
    .right-column {
        padding: 20px;
    }
    
    .profile .name {
        font-size: 2rem;
    }
    
    .profile .title {
        font-size: 1rem;
    }
    
    .section-title {
        font-size: 1.2rem;
    }
    
    .skill-list,
    .hobbies {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .header,
    .left-column,
    .right-column {
        padding: 15px;
    }
    
    .profile .name {
        font-size: 1.8rem;
    }
    
    .section {
        margin-bottom: 30px;
    }
    
    .education-item,
    .project-item,
    .internship-item {
        padding: 15px;
    }
    
    .certificate-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
}

/* 动画效果 */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.section {
    animation: fadeIn 0.5s ease-out forwards;
}

.section:nth-child(1) { animation-delay: 0.1s; }
.section:nth-child(2) { animation-delay: 0.2s; }
.section:nth-child(3) { animation-delay: 0.3s; }
.section:nth-child(4) { animation-delay: 0.4s; }
.section:nth-child(5) { animation-delay: 0.5s; }